package com.lingxu.api.ztb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingxu.api.ztb.model.vo.GetTBUnitVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GetTBUnitMapper extends BaseMapper<GetTBUnitVO> {

    GetTBUnitVO getId (@Param("PARAGRAPHNAME") String sectionName);

    List<GetTBUnitVO> getUnit(@Param("PARAGRAPHID") String PARAGRAPHID);

    IPage<GetTBUnitVO> getUnitName(@Param("page") Page<GetTBUnitVO> page,
                                   @Param("query") GetTBUnitVO vo);
}
